package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;


@TableName("gongyingshangxinxi")
public class GongyingshangxinxiEntity<T> implements Serializable {
	private static final long serialVersionUID = 1L;

	public GongyingshangxinxiEntity() {
		
	}
	public GongyingshangxinxiEntity(T t) {
		try {
			BeanUtils.copyProperties(this, t);
		} catch (IllegalAccessException | InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	@TableId
	private Long id;

	private String gongyingshangbianhao;
	private String gongyingshangmingcheng;
	private String gongyingshangleixing;
	private String gongyingshangdizhi;
	private String lianxiren;
	private String lianxidianhua;
	private String beizhu;

	@JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat
	private Date addtime;

	public Date getAddtime() {
		return addtime;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setGongyingshangbianhao(String gongyingshangbianhao) {
		this.gongyingshangbianhao = gongyingshangbianhao;
	}

	public String getGongyingshangbianhao() {
		return gongyingshangbianhao;
	}

	public void setGongyingshangmingcheng(String gongyingshangmingcheng) {
		this.gongyingshangmingcheng = gongyingshangmingcheng;
	}

	public String getGongyingshangmingcheng() {
		return gongyingshangmingcheng;
	}
	public void setGongyingshangleixing(String gongyingshangleixing) {
		this.gongyingshangleixing = gongyingshangleixing;
	}
	public String getGongyingshangleixing() {
		return gongyingshangleixing;
	}
	public void setGongyingshangdizhi(String gongyingshangdizhi) {
		this.gongyingshangdizhi = gongyingshangdizhi;
	}
	public String getGongyingshangdizhi() {
		return gongyingshangdizhi;
	}

	public void setLianxiren(String lianxiren) {
		this.lianxiren = lianxiren;
	}

	public String getLianxiren() {
		return lianxiren;
	}

	public void setLianxidianhua(String lianxidianhua) {
		this.lianxidianhua = lianxidianhua;
	}

	public String getLianxidianhua() {
		return lianxidianhua;
	}

	public void setBeizhu(String beizhu) {
		this.beizhu = beizhu;
	}

	public String getBeizhu() {
		return beizhu;
	}

}
